
package com.microweb.toastmaster.dao;

import java.util.List;

import com.microweb.toastmaster.dao.Dao;
import com.microweb.toastmaster.model.Agenda;

public interface AgendaDao extends Dao {

    /**
     * Retrieves all of the agendas
     */
    public List getAgendas(Agenda agenda);

    /**
     * Gets agenda's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the agenda's id
     * @return agenda populated agenda object
     */
    public Agenda getAgenda(final Long id);

    /**
     * Saves a agenda's information
     * @param agenda the object to be saved
     */    
    public void saveAgenda(Agenda agenda);

    /**
     * Removes a agenda from the database by id
     * @param id the agenda's id
     */
    public void removeAgenda(final Long id);
}

